package homework.extendwork2.testing;

import homework.extendwork2.coding.Bike;
import homework.extendwork2.coding.Car;
import homework.extendwork2.coding.ElectCar;
import homework.extendwork2.coding.Pedicab;

public class Test {
    public static void main(String[] args) {
        Car car =new Car("bba","red");
        car.show();

        Bike bike=new Bike("ttt","blue");
        bike.show();

        ElectCar electCar=new ElectCar("特斯拉","blue","特斯拉");
        electCar.show();

        Pedicab pedicab=new Pedicab();
        pedicab.show();
        System.out.println("==============");
        System.out.println(pedicab.toString());
        System.out.println(pedicab.hashCode());
        System.out.println(pedicab.getClass());
        System.out.println(pedicab.getClass().getName());


    }
}
